:root {
    --font-size-base: 16px;
    --spacing-unit: 1rem;
    --color-primary: #007AFF;
    --color-secondary: #F2F2F7;
    --color-background: #FFFFFF;
    --color-text: #1C1C1E;
    --color-border: #E5E5EA;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    font-size: 1rem;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-unit);
    margin: 0 auto;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    position: relative;
    padding-top: calc(var(--spacing-unit) * 2);
}

.header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-unit);
}

.content {
    background-color: var(--color-background);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 1.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.button {
    display: inline-block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: calc(var(--border-radius) / 2);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.primary-button {
    background-color: var(--color-primary);
    color: #fff;
}

.secondary-button {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

.task-form {
    margin-top: calc(var(--spacing-unit) * 1.5);
    background-color: var(--color-secondary);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: var(--border-radius);
}

.task-form input,
.task-form select {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: calc(var(--border-radius) / 2);
    font-size: 1rem;
    background-color: #fff;
}

/* 登录表单样式 */
#loginForm {
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 2);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#loginForm h2 {
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-align: center;
    color: var(--color-primary);
}

#loginForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

#loginForm input {
    width: 100%;
    padding: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid var(--color-border);
    border-radius: calc(var(--border-radius) / 2);
    font-size: 1rem;
}

#loginForm button {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: calc(var(--border-radius) / 2);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#loginForm button:hover {
    background-color: #0056b3;
}

#showRegisterLink {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: var(--color-primary);
    text-decoration: none;
}

/* 其他样式保持不变 */
/* ... */

@media (min-width: 768px) {
    .container {
        max-width: 90%;
    }

    .header {
        flex-direction: row;
        justify-content: space-between;
    }

    .header h1 {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .button {
        width: auto;
    }

    .task-controls {
        flex-direction: row;
        align-items: center;
    }

    .auth-buttons {
        width: auto;
    }
}

@media (min-width: 1224px) {
    .container {
        max-width: 80%;
    }

    .header h1 {
        font-size: 2.25rem;
    }
}

/* 在现有的 styles.css 文件中添加或修改以下样式 */

.task-list-section {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 1.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: calc(var(--spacing-unit) * 2);
}

.task-list-section h2 {
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--color-text);
    text-align: center;
}

.task-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    background-color: var(--color-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.task-controls label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.task-controls select,
.task-controls input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: calc(var(--border-radius) / 2);
    font-size: 1rem;
    background-color: #fff;
}

#clearSearchButton {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.75rem;
    border-radius: calc(var(--border-radius) / 2);
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 0.5rem;
}

#clearSearchButton:hover {
    background-color: #0056b3;
}

.task-list {
    list-style-type: none;
    padding: 0;
}

.task-item {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.task-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.task-item span {
    font-size: 1rem;
    color: var(--color-text);
}

.delete-button {
    background-color: #ff3b30;
    color: #fff;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: calc(var(--border-radius) / 2);
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #d63030;
}

@media (min-width: 768px) {
    .task-controls {
        flex-direction: row;
        align-items: flex-end;
    }

    .task-controls select,
    .task-controls input[type="text"] {
        flex: 1;
    }

    #clearSearchButton {
        width: auto;
        margin-top: 0;
    }
}

/* 添加一些动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.circular-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    position: absolute;
    top: 10px;
    right: 10px;
}

.auth-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
}
